#ifndef JKCOMMUNICATIONINTERPROCESS_H
#define JKCOMMUNICATIONINTERPROCESS_H

#include <QObject>
#include <QLocalServer>
#include <QLocalSocket>
#include <QSharedPointer>
#include <QList>

class JKCommunicationInterProcess : public QObject
{
    Q_OBJECT
public:
    explicit JKCommunicationInterProcess(QObject *parent = nullptr);
    virtual~JKCommunicationInterProcess() override;

public slots:
    void startListen();
    void stopListen();
    void publish(QString topic);

private slots:
    void processConnection();

signals:

private:
    QLocalServer *mServer;
    QList<QLocalSocket*> mConnections;

};

Q_DECLARE_METATYPE(QStringList *)

#endif // JKCOMMUNICATIONINTERPROCESS_H
